/**
 * Created by c on 2017-11-29.
 */
//加载操作信息
function caozuo(e,value,row){
    var $str ;
    $str = '<button type="button" class="layui-btn layui-btn-mini showDetail" >查看</button>';
    return $str;
}

//搜索日期插件
$(function () {
    laydate.render({
        elem:'[name=outStartDate]'
    })
    laydate.render({
        elem:'[name=outEndDate]'
    })
});

//模糊查询
function search(){
    var param={};
    param.osNum=$("input[name='osNum']").val();
    param.woName=$("input[name='woName']").val();
    param.divName=$("input[name='divName']").val();
    param.outStartDate=$("input[name='outStartDate']").val();
    param.outEndDate=$("input[name='outEndDate']").val();
    $("#chuTable").bootstrapTable("refresh",{query:param});
}

window.optEvents= {
    "click .showDetail": function (e,value,row) {
        location.href = ctx+"/drug/searchOneChu?osNum="+row.osNum;
    }
}
